# -*-coding:utf-8-*-
"""
@project: python-project
@Time: 2024-07-27 16:42
@Author: Loneliness_Burial
@File: numpy按块复制元素.py
@Motto: 深情不改必坠死海
@software: pycharm
@version: python 3.7
"""

import numpy as np

arr = np.random.randint(1, 10, (2, 3))
print(arr)
print("------")
arr1 = np.tile(arr, 2)
print("按照一行两列的方式复制： \n", arr1)
arr2 = np.tile(arr, (2, 2))
print("按照两行两列的方式复制： \n", arr2)
print("-------")
arr3 = np.tile(arr, (3, 4))
print(arr3)
